<?php

#HEREDOC Vs NEWDOC

$num = 123;
$name = 'Rasmus';

$str = <<<TXT
Less Then <
Greater Then >
Single Quote '
Double Quote "
Back Slash \
Number : $num
Name   : $name
TXT;

echo htmlentities($str),"\n\n\n";
echo htmlentities($str, ENT_QUOTES),"\n\n\n";
echo htmlspecialchars($str),"\n\n\n";
echo addslashes($str),"\n\n\n";
